module MoleculesHelper
  def molecule_image_path(molecule)
    if RUBY_PLATFORM == "java" && defined?(Mol::Renderer)
      molecule_path(molecule, "png")
    else
      molecule_path(molecule, "svg")
    end
  end
end
